# -*- coding: utf-8 -*-

###########################################################################
## Python code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################

import wx
import wx.xrc
import wx.adv

###########################################################################
## Class MainFrame
###########################################################################

class MainFrame ( wx.Frame ):

	def __init__( self, parent ):
		wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = u"知网CAJ转PDF", pos = wx.DefaultPosition, size = wx.Size( 500,-1 ), style = wx.CAPTION|wx.CLOSE_BOX|wx.MINIMIZE_BOX|wx.SYSTEM_MENU|wx.TAB_TRAVERSAL )

		self.SetSizeHints( wx.Size( 500,400 ), wx.Size( -1,-1 ) )
		self.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOW ) )

		bSizerMain = wx.BoxSizer( wx.VERTICAL )

		sbSizer1 = wx.StaticBoxSizer( wx.StaticBox( self, wx.ID_ANY, wx.EmptyString ), wx.VERTICAL )

		bSizer1 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_static_text_caj = wx.StaticText( sbSizer1.GetStaticBox(), wx.ID_ANY, u"CAJ目录：", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_static_text_caj.Wrap( -1 )

		bSizer1.Add( self.m_static_text_caj, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )

		self.m_dir_picker_caj = wx.DirPickerCtrl( sbSizer1.GetStaticBox(), wx.ID_ANY, wx.EmptyString, u"选择目录", wx.DefaultPosition, wx.DefaultSize, wx.DIRP_DEFAULT_STYLE )
		bSizer1.Add( self.m_dir_picker_caj, 1, wx.ALL|wx.EXPAND, 5 )


		sbSizer1.Add( bSizer1, 1, wx.EXPAND, 5 )

		bSizer2 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_static_text_pdf = wx.StaticText( sbSizer1.GetStaticBox(), wx.ID_ANY, u"PDF目录：", wx.DefaultPosition, wx.DefaultSize, 0 )
		self.m_static_text_pdf.Wrap( -1 )

		bSizer2.Add( self.m_static_text_pdf, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5 )

		self.m_dir_picker_pdf = wx.DirPickerCtrl( sbSizer1.GetStaticBox(), wx.ID_ANY, wx.EmptyString, u"选择目录", wx.DefaultPosition, wx.DefaultSize, wx.DIRP_DEFAULT_STYLE )
		bSizer2.Add( self.m_dir_picker_pdf, 1, wx.ALL|wx.EXPAND, 5 )


		sbSizer1.Add( bSizer2, 1, wx.EXPAND, 5 )

		bSizer3 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_btn_open_temp_dir = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"程序目录", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer3.Add( self.m_btn_open_temp_dir, 0, wx.ALL, 5 )

		self.m_btn_convert = wx.Button( sbSizer1.GetStaticBox(), wx.ID_ANY, u"开始转换", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer3.Add( self.m_btn_convert, 0, wx.ALL, 5 )


		sbSizer1.Add( bSizer3, 1, wx.ALIGN_RIGHT, 5 )


		bSizerMain.Add( sbSizer1, 0, wx.ALL|wx.EXPAND, 5 )

		bSizer6 = wx.BoxSizer( wx.VERTICAL )

		self.m_text_log = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.Size( -1,-1 ), wx.TE_MULTILINE|wx.TE_READONLY )
		bSizer6.Add( self.m_text_log, 1, wx.ALL|wx.EXPAND, 5 )


		bSizerMain.Add( bSizer6, 1, wx.EXPAND, 5 )

		bSizer5 = wx.BoxSizer( wx.HORIZONTAL )

		self.m_hyperlink_caj2pdf = wx.adv.HyperlinkCtrl( self, wx.ID_ANY, u"caj2pdf", u"https://github.com/caj2pdf/caj2pdf", wx.DefaultPosition, wx.DefaultSize, wx.adv.HL_DEFAULT_STYLE )
		bSizer5.Add( self.m_hyperlink_caj2pdf, 0, wx.ALL, 5 )

		self.m_hyperlink_mupdf = wx.adv.HyperlinkCtrl( self, wx.ID_ANY, u"mutool", u"https://mupdf.com/releases/index.html", wx.DefaultPosition, wx.DefaultSize, wx.adv.HL_DEFAULT_STYLE )
		bSizer5.Add( self.m_hyperlink_mupdf, 0, wx.ALL, 5 )


		bSizerMain.Add( bSizer5, 0, wx.EXPAND, 5 )


		self.SetSizer( bSizerMain )
		self.Layout()

		self.Centre( wx.HORIZONTAL )

		# Connect Events
		self.Bind( wx.EVT_CLOSE, self.OnMenuClickEventExit )
		self.m_btn_open_temp_dir.Bind( wx.EVT_BUTTON, self.OnClickEventOpenTempDir )
		self.m_btn_convert.Bind( wx.EVT_BUTTON, self.OnClickEventConvert )

	def __del__( self ):
		pass


	# Virtual event handlers, override them in your derived class
	def OnMenuClickEventExit( self, event ):
		event.Skip()

	def OnClickEventOpenTempDir( self, event ):
		event.Skip()

	def OnClickEventConvert( self, event ):
		event.Skip()


